projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c79cba3
)
common.h: remove MIN, MAX, MIN3, MAX3 macros
author
Masahiro Yamada
<
[email protected]
>
Thu, 18 Sep 2014 04:28:07 +0000
(13:28 +0900)
committer
Tom Rini
<
[email protected]
>
Wed, 24 Sep 2014 22:30:29 +0000
(18:30 -0400)
Now MIN, MAX, MIN3, MAX are not used.
Going forward, use min, max, min3, max3.
Signed-off-by: Masahiro Yamada <
[email protected]
>
include/common.h
patch
|
blob
|
history
diff --git
a/include/common.h
b/include/common.h
index 97c04df588ed641d50435f571342e0bb8b640a34..d5020c8c45d1afc515e02433ea2513ab6b99d28e 100644
(file)
--- a/
include/common.h
+++ b/
include/common.h
@@
-181,9
+181,6
@@
typedef void (interrupt_handler_t)(void *);
typeof(Y) __y = (Y); \
(__x > __y) ? __x : __y; })
-#define MIN(x, y) min(x, y)
-#define MAX(x, y) max(x, y)
-
#define min3(X, Y, Z) \
({ typeof(X) __x = (X); \
typeof(Y) __y = (Y); \
@@
-198,9
+195,6
@@
typedef void (interrupt_handler_t)(void *);
__x > __y ? (__x > __z ? __x : __z) : \
(__y > __z ? __y : __z); })
-#define MIN3(x, y, z) min3(x, y, z)
-#define MAX3(x, y, z) max3(x, y, z)
-
/*
* Return the absolute value of a number.
*